/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package regulatoryInteractionsStats.yeast;

/**
 *
 * @author jamie
 */
public class YeastGene implements Comparable{

    public String accession;
    public String sgdId;
    public String symbol;

    public YeastGene() {
    }

    public void setAccession(String accession) {
        this.accession = accession;
    }

    public void setSgdId(String sgdId) {
        this.sgdId = sgdId;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public String getAccession() {
        return accession;
    }

    public String getSgdId() {
        return sgdId;
    }

    public String getSymbol() {
        return symbol;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final YeastGene other = (YeastGene) obj;
        if ((this.accession == null) ? (other.accession != null) : !this.accession.equals(other.accession)) {
            return false;
        }
        if ((this.sgdId == null) ? (other.sgdId != null) : !this.sgdId.equals(other.sgdId)) {
            return false;
        }
        if ((this.symbol == null) ? (other.symbol != null) : !this.symbol.equals(other.symbol)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 31 * hash + (this.accession != null ? this.accession.hashCode() : 0);
        hash = 31 * hash + (this.sgdId != null ? this.sgdId.hashCode() : 0);
        hash = 31 * hash + (this.symbol != null ? this.symbol.hashCode() : 0);
        return hash;
    }



    public int compareTo(Object o) {
        YeastGene otherGene = (YeastGene) o;
        return this.getSgdId().compareTo(otherGene.sgdId);
    }



    

}
